<%@ page isELIgnored="false" %>
<%@page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<% 
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<base href="/shopping/views/" />
<head>
	<meta charset="UTF-8">
	<title>购物网站-后台</title>
	<link rel="shortcut icon" href="back/images/Frameimages/favicon.ico" type="image/x-icon" />
    
<!--
	<link rel="stylesheet" type="text/css" href="back/easyui/css/easyui.css">
	<link rel="stylesheet" type="text/css" href="back/easyui/css/icon.css">
	<link rel="stylesheet" type="text/css" href="back/easyui/css/demo.css">
-->
    <link rel="stylesheet" type="text/css" href="back/js/jquery-easyui-1.3.5/themes/metro/easyui.css">
    <link rel="stylesheet" type="text/css" href="back/js/jquery-easyui-1.3.5/themes/icon.css">
	
	<script type="text/javascript" src="back/js/jquery-1.9.1.js"></script>
	<script type="text/javascript" src="back/js/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="back/js/ajaxfileupload.js"></script>
	
	<script type="text/javascript" src="back/js/showpic.js"></script>
	
	<script type="text/javascript" src="back/js/ueditor/ueditor.config.js"></script>
	<script type="text/javascript" src="back/js/ueditor/ueditor.all.min.js"></script>
	<script type="text/javascript" src="back/js/ueditor/lang/zh-cn/zh-cn.js"></script>
	
	<script type="text/javascript" src="back/js/index.js"></script>

    <style>
        .navivation h3{
            padding:10px;
        }
        a{
            text-decoration: none;
        }
        .userinfo{
            float:right;
            color:coral;
            font-size: 12px;
        }
        .backexit{
            float:right;
            color:coral;
            font-size: 12px;
        }
    </style>
</head>
<body class="easyui-layout">
	<div data-options="region:'north',border:false"
		style="height: 60px; background: #B3DFDA; padding: 10px">
        <a href='javascript:void(0)' class="userinfo">${adminInfo.name}</a><br/>
		<a href='javascript:exit()' class="backexit">注销</a>
	</div>


	<!-- 左边导航栏 -->
	<div class="navivation" data-options="region:'west',split:true,title:'菜单'"
		style="width: 150px;">
		<div id="aa" class="easyui-accordion"
			style="width: 130px; height: 400px;">
			<!--<div title="标签管理" data-options="iconCls:'icon-tip'"
				style="overflow: auto;">
				 <h3 style="color:#0099FF;">用户，地址，商品，购物车，订单</h3> 
				<ul id="menu_tree" class="easyui-tree" >
					<li data-options="iconCls:'icon-tip'"><span>用户标签管理</span></li>
					<li data-options="iconCls:'icon-tip'"><span>地址标签管理</span></li>
					<li data-options="iconCls:'icon-tip'"><span>商品标签管理</span></li>
					<li data-options="iconCls:'icon-tip'"><span>购物车标签管理</span></li>
					<li data-options="iconCls:'icon-tip'"><span>订单标签管理</span></li>
				</ul>
			</div>-->
			<div title="用户管理" data-options="iconCls:'icon-tip'">
				<h3 style="color:#0099FF;">用户列表</h3>  
        		<ul id="menu_tree" class="easyui-tree" >
					<li data-options="iconCls:'icon-tip'"><span>用户管理</span></li>
				</ul>  
			</div>
			<div title="地址管理" data-options="iconCls:'icon-tip'">
				<h3 style="color:#0099FF;">地址列表</h3>
				<ul id="menu_tree" class="easyui-tree" >
					<li data-options="iconCls:'icon-tip'"><span>地址管理</span></li>
				</ul>
			</div>
			<div title="商品管理" data-options="iconCls:'icon-tip'" style="overflow: auto;">
				<h3 style="color:#0099FF;">热门商品</h3>
				<ul id="menu_tree" class="easyui-tree" >
					<li data-options="iconCls:'icon-tip'"><span>商品管理</span></li>
				</ul>
			</div>
			<div title="购物车管理" data-options="iconCls:'icon-tip'">
				<h3 style="color:#0099FF;">购物车列表</h3>
				<ul id="menu_tree" class="easyui-tree" >
					<li data-options="iconCls:'icon-tip'"><span>购物车管理</span></li>
				</ul>
			</div>
			<div title="订单管理" data-options="iconCls:'icon-tip'">
				<h3 style="color:#0099FF;">订单列表</h3>
				<ul id="menu_tree" class="easyui-tree" >
					<li data-options="iconCls:'icon-tip'"><span>订单管理</span></li>
				</ul>
			</div>
			<div title="其他管理" data-options="iconCls:'icon-tip'">content5</div>
		</div>
	</div>
<!--
	<div data-options="region:'east',split:true,collapsed:true,title:'帮助'"
		style="width: 100px; padding: 10px;"></div>
-->
	<div class="footer" data-options="region:'south',border:false"
		style="height: 50px; background: rgba(0,0,0,.6); padding: 10px; text-align: center;color:white;">
        周丹&copy;设计实现
    </div>
	<div data-options="region:'center',title:'操作'">
		<div id="center_area" class="easyui-tabs" data-options="fit:true">
		</div>
	</div>

	<script>
        function exit(){
            //退出只要调用下api接口就可以，不用参数，
            //因为是用户信息存在session里面，session本身就是根据对象区分的
            $.ajax({
                url:'../back/adminInfo/exit',
                type:"POST",
                data:{'op':'backExit'},
                dataType:"JSON", 
                success:function(data){
                    if(data.code=='0000'){//按照后端的规矩来， 0000表示成功 9999表示失败
                        location.href="back/login.jsp";
                    }else{
                        $.messager.show({title:'失败',msg:"退出失败，请联系管理员...",timeout:2000,showType:'slide'});
                    }
                }
            });
        }  
	</script>
</body>
</html>